<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>create_ol_li.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript" src="jquery-1.6.js"></script>
	<script type="text/javascript">
		$(function(){
			$("ul li ul li:has(a)").addClass("back");
			$("p:gt(2)").addClass("back");
		});
	</script>
	<style type="text/css">
		.back{background: red;}
	</style>
  </head>

<body>
	<ul>
		<li><a href="#">你好吗</a>
			<ul>
				<li>还行</li>
				<li><a href="#">你</a></li>
				<li><a href="#">你</a></li>
				<li><a href="#">你</a></li>
			</ul>
		</li>
	</ul>
	
	<div>
		<p>11</p>
		<p>11</p>
	</div>
	
	<div>
		<p>22</p>
		<p>22</p>
	</div>
	
	<div>
		<p>33</p>
		<p>33</p>
	</div>
	
	<div>
		<p>44</p>
		<p>44</p>
	</div>
</body></html>
